package com.mallplus.rbac.service.impl;

import com.mallplus.rbac.mapper.MenuMapper;
import com.mallplus.rbac.model.Menu;
import com.mallplus.rbac.service.MenuService;
import com.mallplus.rbac.vo.MenuSimpleVO;
import com.mallplus.rbac.vo.MenuVO;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Hanson
 * @date 2023/4/17 16:07
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Resource
    private MenuMapper menuMapper;

    @Override
    public MenuVO getByMenuId(Long menuId) {
        return menuMapper.getByMenuId(menuId);
    }

    @Override
    public void save(Menu menu) {

    }

    @Override
    public void update(Menu menu) {

    }

    @Override
    public void deleteById(Long menuId, Integer sysType) {

    }

    @Override
    public List<Menu> listBySysType(Integer sysType) {
        return null;
    }

    @Override
    public List<MenuSimpleVO> listWithPermissions(Integer sysType) {
        return menuMapper.listWithPermissions(sysType);
    }

    @Override
    public List<Long> listMenuIds(Long userId) {
        return null;
    }
}
